package com.kayang.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@Data
@Component
@ConfigurationProperties(prefix = "db")
public class DbConfig {


    private String dbtype;

    private String server;

    private String dbname;

    private String account;

    private String password;

    private String timeout;

    private String execTimeout;

    private String jdbcUrl = "";

    private String initialPoolSize;

    private String minPoolSize;

    private String maxPoolSize;

    private String checkoutTimeout;

    private String idleConnectionTestPeriod;

    private String maxIdleTime;

    private String maxConnectionAge;

    private String autoCommitOnClose;

    private String acquireIncrement;

    private String numHelperThreads;

    private String acquireRetryAttempts;

    private String acquireRetryDelay;

    private String breakAfterAcquireFailure;

    private String maxStatements;

    private String maxStatementsPerConnection;

    private String testConnectionOnCheckin;


}
